<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<!--suppress HtmlRequiredTitleElement -->
<head>
    <th:block th:include="include :: header('定时任务调度日志表')"/>
</head>
<body class="layui-layout-body theme-himio">
<!-- 正文开始 -->
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 数据表格 -->
            <table id="jobLogTable" lay-filter="jobLogTable"></table>
        </div>
    </div>
</div>

<!--表格操作工具按钮-->
<script type="text/html" id="jobLogTbBar">
    <a class="layui-btn layui-bg-cyan layui-btn-sm icon-btn" lay-event="edit" shiro:hasPermission="monitor:jobLog:list"><i
            class="fa fa-search"></i>详细</a>
    <a class="layui-btn layui-btn-danger layui-btn-sm icon-btn" lay-event="del"
       shiro:hasPermission="monitor:jobLog:remove"><i class="fa fa-trash"></i>删除</a>
</script>


<!-- 表单弹窗 edit -->
<script type="text/html" id="jobLogEditDialog">
    <form id="jobLogEditForm" lay-filter="jobLogEditForm" class="layui-form model-form">
        <input name="jobLogId" type="hidden"/>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">任务名称:</label>
            <div class="layui-input-block">
                <input type="text" name="jobName" class="layui-input" disabled/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">任务组名:</label>
            <div class="layui-input-block">
                <label>
                    <select name="jobGroup" th:with="type=${@dict.getType('sys_job_group')}" disabled>
                        <option value="">全部</option>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                                th:selected="${dict.default}"></option>
                    </select>
                </label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">调用目标字符串:</label>
            <div class="layui-input-block">
                <label>
                    <textarea name="invokeTarget" class="layui-textarea" disabled></textarea>
                </label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">日志信息:</label>
            <div class="layui-input-block">
                <label>
                    <textarea name="jobMessage" class="layui-textarea" disabled></textarea>
                </label>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">执行状态:</label>
            <div class="layui-input-block">
                <input type="radio" th:each="dict : ${@dict.getType('sys_job_status')}" th:id="${dict.dictCode}"
                       name="status" th:value="${dict.dictValue}" th:title="${dict.dictLabel}" disabled
                       th:checked="${dict.default}"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">异常信息:</label>
            <div class="layui-input-block">
                <label>
                    <textarea name="exceptionInfo" class="layui-textarea" disabled></textarea>
                </label>
            </div>
        </div>
        <div class="layui-form-item text-right">
            <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">关闭</button>
        </div>
    </form>
</script>


<!-- js部分 -->
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var addFlag = [[${@permission.hasPermit('monitor:jobLog:add')}]];
    var editFlag = [[${@permission.hasPermit('monitor:jobLog:edit')}]];
    var removeFlag = [[${@permission.hasPermit('monitor:jobLog:remove')}]];
    var exportFlag = [[${@permission.hasPermit('monitor:jobLog:export')}]];
    var dictSysJobGroup = [[${@dict.getType('sys_job_group')}]];
    var dictSysJobStatus = [[${@dict.getType('sys_job_status')}]];
    var prefix = ctx + "monitor/jobLog";
    var curJob = [[${job}]];
</script>
<script th:src="@{/static/assets/system/js/jobLog.js}"></script>
</body>
</html>

